﻿cmake_minimum_required(VERSION 3.0.0)
project(stm_ctl_skeleton VERSION 0.1.0)

message(STATUS "*** ${PROJECT_NAME}  ***")

file(GLOB STMCTL_SRC     ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
file(GLOB LOG_SRC     ${CMAKE_CURRENT_SOURCE_DIR}/log/*.cpp)
file(GLOB STM_ARACOM_SRC ${CMAKE_CURRENT_SOURCE_DIR}/../../gen/ara/sm/*.cpp)
file(GLOB STM_ARACOM_DEFAULTFG_SRC ${CMAKE_CURRENT_SOURCE_DIR}/../../gen/ara/sm/default_fg/*.cpp)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../gen)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/)

add_executable(${PROJECT_NAME}
    ${STMCTL_SRC}
    ${STM_ARACOM_SRC}
    ${STM_ARACOM_DEFAULTFG_SRC}
    ${LOG_SRC}
)

target_link_libraries(${PROJECT_NAME}
    PUBLIC
        ${EXM_AAP_EXECUTION_MANAGER_LIBRARIES}
        ${COM_COMMUNICATION_MANAGER_LIBRARIES}
        -lpthread
        -lrt
    PRIVATE
        ${SKELETON_LIB}
)